const mongoose = require("mongoose");

module.exports = mongoose.model("Library", {
  //图书馆名称
  libraryName: {
    type: Object,
    //必选
    required: true,
    // default 默认值
  },
  //所在地址
  site: {
    type: String,
    required: true,
  },
  //详细地址
  detailedAddress: {
    type: String,
    required: true,
  },
  //图书馆经纬度
  longitude: {
    type: String,
    required: true,
  },
  //结算周期
  settlementInterval: {
    type: String,
    required: true,
    default: "一个月",
  },
  //结算比例
  proportion: {
    type: String,
    required: true,
    default: "10.00",
  },
  //开会银行
  operatingBank: {
    type: String,
  },
  //银行卡号
  creditCardNumbers: {
    type: String,
  },
  //真实姓名
  realName: {
    type: String,
  },
  //身份证号
  IDNumber: {
    type: Number,
  },
  //手机号
  cellPhoneNumber: {
    type: Number,
  },
});

